<?php

namespace app\home\controller;
use think\Controller;
class Index extends Controller
{
    public function huoma($id){
        $info = db('wx_huoma')->where('id',$id)->find();
        $fileInfo = db('upload_file')->where(['file_id'=>$info['url']])->find();
        $info['image'] = $fileInfo['file_url'].'/'.$fileInfo['file_name'];
        db('wx_huoma')->where('id',$id)->setInc('liulan');
        return $this->fetch('huoma', compact('info'));
    }
}